/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package clases;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;

/**
 *
 * @author Saul
 */
public class cConexion {
    private Connection cnx = null;
    private Statement sttm = null;

    public void UID(String sqlcad) {
        try {
            cnx = DriverManager.getConnection("jdbc:odbc:conexion_vehiculo");
            sttm = cnx.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
            sttm.executeUpdate(sqlcad);
        } catch (Exception e) {
            System.out.println("ERROR=" + e.getMessage());
        }
    } 
}
